import {GET_DATA} from "../actions/filter-action";

const originState={
    price:[],
    bedroom:[]
}

export default function (state = originState,action) {
    switch (action.type){
        case GET_DATA:{
            return {
                ...state,
                price:action.payload.data.price,
                bedroom:action.payload.data.bedroom
            }
        }
        default:
            return state
    }
}